package com.hanliy.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author hanyulin
 * @apiNote 用户dto
 * @date 2021/12/12 16:42
 */
@Data
public class UserDTO {

    private Long userId;

    /**
     * 用户名
     */
    @NotNull
    @Length(min = 2,max = 10)
    private String username;

    /**
     * 密码
     */
    @NotNull
    @Length(min =6,max = 20)
    private String password;
}
